package com.foreveross.proxyip.infra.base.struts2.json;
/**
 * JSON格式的请求返回信息
 * @author xiangsf 2013-1-19
 *
 */
public class JsonReturnBean {
	
	public static final String TIP_SUCCESS = "SUCCESS";
	public static final String TIP_FAIL = "FAIL";
	public static final String TIP_ERROR = "ERROR";
	/**
	 * 是否操作成功
	 */
	private boolean hasOk = false;
	/**
	 * 操作返回提示信息<br/>
	 * 比如：success, fail, error或者定义错误代码404
	 */
	private String tip;
	/**
	 * 操作返回消息<br/>
	 * 一般用来记录出错信息或显示的提示
	 */
	private String message;
	/**
	 * 一个回传的其它类型JSON对象
	 */
	private Object bean;
	
	private boolean isSave;

	public boolean isHasOk() {
		return hasOk;
	}

	public void setHasOk(boolean hasOk) {
		this.hasOk = hasOk;
	}

	public String getTip() {
		return tip;
	}

	public void setTip(String tip) {
		this.tip = tip;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getBean() {
		return bean;
	}

	public void setBean(Object bean) {
		this.bean = bean;
	}

	public boolean isSave() {
		return isSave;
	}

	public void setSave(boolean isSave) {
		this.isSave = isSave;
	}
	
	
}
